import axios from "./axios";

export const getMaterial = (params) =>
    axios.get(`/material/msg`, { params })

export const editMaterial = (data) =>
    axios.post(`/material/edit`, data)

export const addMaterial = (data) =>
    axios.post(`/material/add`, data)

export const delMaterial = (data) =>
    axios.post(`/material/del`, data)

export const getSearch = (params) =>
    axios.get(`/material/search`, { params })